#ifndef NETWORK_MENU_VIEW_H
#define NETWORK_MENU_VIEW_H

#include "NetworkMenuModel.h"
#include "View.h"
#include "Screen.h"
#include "d3dx9.h"
#include "d3d9.h"
#include <string>

const int NetMenuChoicesCount = 3;

const LPCSTR _netMenuLabelText = "SPACESHIPS! NETWORK GAME!";
const int _netMenuLabelTextLen = strlen(_netMenuLabelText);

const LPCSTR _menuServerModeOption = "Start Server";
const int _menuServerModeLen = strlen(_menuServerModeOption);

const LPCSTR _menuClientModeOption = "Start Client";
const int _menuClientModeLen = strlen(_menuClientModeOption);

const LPCSTR _menuBackOption = "Back";
const int _menuBackLen = strlen(_menuBackOption);

const D3DCOLOR _netSelTextColor = D3DCOLOR_ARGB(255,255,255,255);;
const D3DCOLOR _netNormalTextColor = D3DCOLOR_ARGB(150,255,255,255);;

class NetworkMenuView: public View
{
  public:
    NetworkMenuView(Screen* screen, Model* m, LPDIRECT3DDEVICE9 dd3d);
    ~NetworkMenuView(void);
    void InitRects();
  protected:
    void PreRender();
    void PostRender();
    void Draw();
    void HandleMessage(Message* msg);
  private:
    LPD3DXFONT _mainMenuFont;
    LPD3DXFONT _subMenuFont;
    NetworkMenuModel* _model;
    RECT _titleRect;
    RECT _menuRect[3];
};

#endif
